<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 26826
  Date: 2022/5/16
  Time: 10:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta name="renderer" content="webkit">
  <title></title>
  <link rel="stylesheet" href="${pageContext.request.contextPath}/css/pintuer.css">
  <link rel="stylesheet" href="${pageContext.request.contextPath}/css/admin.css">
  <script src="${pageContext.request.contextPath}/js/jquery.js"></script>
  <script src="${pageContext.request.contextPath}/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel margin-top">
  <div class="panel-head" id="add"><strong><span class="icon-plus-square-o"></span>添加公司</strong></div>
  <div class="body-content">
    <form method="post" class="form-x">
      <div class="form-group">
        <div class="label" style="width: 100px">
          <label>请输入公司名字</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" id="company_name" name="company_name"/>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label" style="width: 100px">
          <label>请输入公司地址</label>
        </div>
        <div class="field">
          <input type="text" id="company_address" class="input w50" name="company_address"/>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <a  class="button border-main icon-check-squareh" onclick="comp()"> 确定</a>
        </div>
      </div>
    </form>
  </div>
</div>
<script>
  function comp(){
    var company_name = $("#company_name").val()
    var company_address = $("#company_address").val()

    console.log(company_name)
    console.log(company_address)
    window.parent.$("[name='company_person']").attr("addCompany_name",company_name)
    window.parent.$("[name='company_person']").attr("company_address",company_address)
    window.parent.$("#company_list").css("display","none");




  }
</script>
</body></html>